package cn.com.chengmandian.bike.service;

import cn.com.chengmandian.bike.dto.MemberLocationForm;
import cn.com.chengmandian.bike.model.EbDeviceBike;
import cn.com.chengmandian.bike.model.EbRideOrder;
import cn.com.chengmandian.bike.model.vo.DeviceBikeVo;
import cn.com.chengmandian.core.web.pojo.AgentUser;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 电单车运营-车辆信息表 服务类
 * </p>
 *
 * @author AutoGenerator
 * @since 2021-12-08
 */
public interface IEbDeviceBikeService extends IService<EbDeviceBike> {
    void noInStopAreaSendVoice(Integer agentId, String bikeNo, String sysName);

    List<DeviceBikeVo> getNearList(Integer agentId, Integer areaId, MemberLocationForm memberLocationForm);

    DeviceBikeVo getBike(String bikeNo);

    EbDeviceBike getByNo(String bikeNo);

    void checkOpenBike(AgentUser agentUser, EbDeviceBike deviceBike, BigDecimal lng, BigDecimal lat);

    void checkCloseBike(EbDeviceBike deviceBike, EbRideOrder rideOrder, Integer isDispatch, Integer isPayHelmetMoney, Integer userId, String userName);

    void updateScanInfo(EbDeviceBike ebDeviceBike, AgentUser agentUser, MemberLocationForm memberLocationForm);
}
